package com.hunan.chinamobile.service;

import com.hunan.chinamobile.core.Service;
import com.hunan.chinamobile.dto.UserDTO;
import com.hunan.chinamobile.model.User;
import org.springframework.context.annotation.Primary;

import java.util.List;

public interface HUserService extends Service<User> {

    List<User> findByRoleAndUserName(String roleId,String name);

    List<User> findByCityId(String cityId);

    User check(String username);

    UserDTO login(String username,String password);

    UserDTO findByUserName(String username);
}
